-- GENERATED SPELL FOR [Ravenous Flayer Matriarch] --


function spell0_21205(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(38363,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21205', 25000, 1)
end

function spell1_21205(pUnit, Event) --@The Den Mother\'s Mark,n/a--
pUnit:FullCastSpellOnTarget(36464,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21205', 0, 1)
end

function Sorts_21205(pUnit, Event)
local choix_sorts_21205 = math.random(0, 1)
if choix_sorts_21205 == 0 then
pUnit:RegisterEvent('spell0_21205', 1, 1)
end
if choix_sorts_21205 == 1 then
pUnit:RegisterEvent('spell1_21205', 1, 1)
end
end

function mob21205_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21205', math.random(1500, 3000), 1)
end

function mob21205_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21205_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21205_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21205, 1, 'mob21205_Action')
RegisterUnitEvent(21205, 2, 'mob21205_Leave')
RegisterUnitEvent(21205, 3, 'mob21205_Kill')
RegisterUnitEvent(21205, 4, 'mob21205_Die')
